package com.example.demo.enums;

public enum BusinessEnum {

    SUCCESS(200L, "success"),
    FAILED(500L, "error"),
    LOGIN(-1L, "登录出错"),
    LOGIN_ACCOUNT_NULL(10001L, "账号不能为空"),
    LOGIN_PASS_NULL(10001L, "密码不能为空"),
    LOGIN_ACCOUNT_ERROR(-1L, "账号或密码错误"),

    FILE_EMPTY_ERROR(20001L, "文件不存在"),
    FILE_MOVE_FAILED(20002L, "文件移动或保存失败"),
    FILE_STATE_ERROR_OR_EXITES(20003L, "文件状态异常，可能文件已被移动或删除"),


    UNKNOWN_ERROR(500L, "unknown error");

    public Long code;
    public String message;
    BusinessEnum(Long code, String message){
        this.code = code;
        this.message = message;
    }
}
